package com.ssy.lingxi.pay.api.fallback;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.pay.api.dto.request.*;
import com.ssy.lingxi.pay.api.feign.IWeChatPayFeign;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * 微信支付
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/10/24
 */
@Component
@Qualifier("weChatPayHystrix")
public class WeChatPayHystrix implements IWeChatPayFeign {
    @Override
    public Wrapper<String> orderPay(MobilePayRequest mobilePayRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> orderQuery(WeChatOrderQueryRequest weChatOrderQueryRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> closeOrder(WeChatCloseOrderRequest weChatCloseOrderRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> refund(WeChatRefundRequest weChatRefundRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> refundQuery(WeChatRefundQueryRequest weChatRefundQueryRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }
}
